{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/header.html"}
{literal}
<script type="text/javascript" src="/js/main.js"></script>
<script type="text/javascript">

</script>
{/literal}

<div class="oh_step">
    <div class="banner">
        <!--<ul>
            {if !$carousel}
            <li><a href="#"><img src="/images/temp/banner.jpg" width="728" height="380"/></a></li>
            {else}
            {foreach from=$carousel key=key item=item}
            <li><a href="{$item.image_url}" target="_blank"><img src="http://admin.cn/upload/{$item.image}" title="{$item.activity_name}" width="728" height="380"/></a></li>
            {/foreach}
            {/if}
        </ul>-->

        <ul>
            {if !$carousel}
            <li class="curr"><a href="/" target="_blank"><img src="{$image_url}{$item.image}" title="{$item.activity_name}" width="728" height="370"/></a></li>
            {else}
            {foreach from=$carousel key=key item=item}
            <li {if $key eq '0'} class="curr"{/if}><a href="{if $item.image_url neq '' }{$item.image_url}{else}/{/if}" title="{$item.activity_name}" target="_blank"><img src="{$image_url}{$item.image}" title="{$item.activity_name}" width="728" height="370"/></a></li>
            {/foreach}
            {/if}
        </ul>
        <ol>
            {if !$carousel}
            <li class="curr"></li>
            {else}
            {foreach from=$carousel key=key item=item}
            <li {if $key eq '0'} class="curr"{/if}></li>
            {/foreach}
            {/if}
        </ol>
        {literal}
        <script>
            function slide(obj,wid,tm){
		var oIndex = 0;
		var oUl = $(obj).find('li');
		var oUli  =$('.banner ul li');
		var oUlLength = oUl.length;
		var Width = wid.oUlLength;
		var timer = null;
		$(wid).css({'width':oUlLength*Width});

		$(oUl).hover(function(){
			oIndex = $(this).index();
			tab();
		});

		function tab(){
			$(oUli).eq(oIndex).addClass('curr').siblings().removeClass('curr');
			$(oUl).eq(oIndex).addClass('curr').siblings().removeClass('curr');
			$(oUl).eq(oIndex).closest('ul').siblings().find('li').eq(oIndex).css('zIndex','1');
			$(oUl).eq(oIndex).closest('ul').siblings().find('li').eq(oIndex).fadeIn().siblings().fadeOut();
			$(oUl).eq(oIndex).closest('ol').siblings().find('li').eq(oIndex).fadeIn().siblings().fadeOut();
		};

		function autoplay(){
			oIndex++;
			if(oIndex>=oUlLength){
				oIndex=0;
			}
			tab();
		};

		var timer = setInterval(autoplay,tm);

		$(wid).hover(function(){
			clearInterval(timer);
		},function(){
			timer = setInterval(autoplay,tm);
		});
	}
	slide('.banner ol','.banner ul',4000);

    function  float_qq_service_close() {
        $(".float_qq_service").hide();
    }

        </script>
        {/literal}
    </div>

    <div class="crude">
        <h3 class="crude_title">今日原油指数</h3>
        <ul class="crude_list">
            {foreach from=$IndexMark key=key item=item}
            <li>
                <span class="sl1">{$item.name}</span>
                {if $item.status=='fall' }
                <span class="sl2 green">{$item.num}</span>
                <span class="sl3 green">{$item.updown}%</span>
                {/if}
                {if $item.status=='rise' }
                <span class="sl2 orange">{$item.num}</span>
                <span class="sl3 orange">{$item.updown}%</span>
                {/if}
                {if $item.status=='flat' }
                <span class="sl2 blue">{$item.num}</span>
                <span class="sl3 blue">{$item.updown}%</span>
                {/if}
            </li>
            {/foreach}
        </ul>
        <i class="sl4"></i>
    </div>
</div>

<div class="oh_step"><a href="#"><img src="/images/step1.jpg" /></a><a href="#"><img src="/images/step2.jpg" /></a><a href="#"><img src="/images/step3.jpg" /></a><a href="#"><img src="/images/step4.jpg" /></a></div>

<div class="spot_resources">
    <div class="sr_title">
        <h3 class="sr_h3">
            <i>1F</i>现货资源
        </h3>     
        <div class="sr_list drop_" >
            <h3 class="sr_lt">交易动态</h3>
            <ul class="sr_ul ltol1">
                {if $tradeorder neq ''}
                {foreach from=$tradeorder key=key item=item}
                <li><span class="pr10">{$item.contacts}</span><span class="pr10 orange">{$item.cate_name} {$item.product_name}</span><span class="pr10">{$item.brand_name}</span><span class="pr10"><i class="orange">{$item.num}</i>吨</span><span class="pr10 green">{$_PurchaseOrderMean[$item.status]}</span>{$item.create_time}</li>
                {/foreach}
                {/if}
            </ul>
        </div>
        
        <div class="sr_list_1 drop_box">
            <h3 class="sr_lt_1">交易动态</h3>
            <div class="sr_ul_1 ltol1_1">
            <table>
                {if $tradeorder neq ''}
                {foreach from=$tradeorder key=key item=item}
                <a href="http://web.cn/principal"><tr>
                    <td><span class="pr10"><i><a href="http://web.cn/principal">{$item.contacts}</a></i></td>
                    <td><span class="pr10 orange"><i class="pr10 orange">{$item.cate_name} {$item.product_name}<a href="http://web.cn/principal"></a></span></i></td>
                    <td><span class="pr10"><a href="http://web.cn/principal">{$item.brand_name}</a></span></i></td>
                    <td><span class="pr10"><a href="http://web.cn/principal"><i class="orange">{$item.num}</i>吨</a></i></span></td>
                    <td><span class="pr10 green">{$_PurchaseOrderMean[$item.status]}</i></span></td>
                    <td><span>{$item.create_time}</i></span></td>
                </tr>                
                {/foreach}
                {/if}
            </table>
            </div>
        </div>        
 
        <a href="/principal/index" class="fr blue ffs">查看更多>></a>
    </div>

    <div class="spot_list">
        <!--<div class="fl"><a href="#"><img src="/images/temp/temp1.jpg" width="210" height="460"/></a></div>-->
        <div class="spot_lm stm1">
            <table>
                <tr>
                    <th>品种</th>
                    <th>牌号</th>
                    <th>厂商</th>
                    <th>价格(元)</th>
                    <th>数量(吨)</th>
                    <th>交货地</th>
                    <th>交货时间</th>
                    <th>更新时间</th>
                    <th width="100">操作</th>
                </tr>
                {if $HomeData['f1_index']}
                {foreach from=$HomeData['f1_index'] key=key item=item}
                <tr>
                    <td>{$item.cate_name}</td>
                    <td>{$item.product_name}</td>
                    <td>{$item.brand_name}</td>
                    <td class="orange">{$item.price}</td>
                    <td class="orange">{$item.num}</td>
                    <td>{$item.region_name}</td>
                    <td>{$item.delivery_time}</td>
                    <td>{$item.update_time}</td>
                    <td><a href="/principal/index?product_name={$item.product_name}" class="blue">查看</a></td>
                </tr>
                {/foreach}
                {/if}
            </table>
        </div>
        <div class="release_source">
            <h3 class="rs_title">免登录快速发布货源</h3>
            <div class="rs_list publish_price">
                <textarea name="content" class="rs_list_input1 content" cols="" rows="" placeholder="写下您的真实需求，包括品种、牌号、价格、厂家等，收到后我们会立即给您回电确认，剩下的就交给我们吧。"></textarea>
                <input name="business_name" class="rs_list_input2 business_name" type="text" placeholder="请输入公司名称"/>
                <input name="contacts" class="rs_list_input2 contacts" type="text" placeholder="请输入联系人姓名"/>
                <input name="mobile" class="rs_list_input2 mobile" type="text" placeholder="请输入您的手机号"/>
                <input class="rs_list_input3 publish" type="button" value="发布货源信息"/>
            </div>
        </div>

        <ul class="brand">
            <li><a href="#"><img src="/images/temp/brand1.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand2.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand3.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand4.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand5.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand6.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand7.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand8.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand9.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand10.jpg" width="94" height="39"/></a></li>
        </ul>

    </div>

</div>


<div class="spot_resources">
    <div class="sr_title srt2f">
        <h3 class="sr_h3">
            <i>2F</i>求购信息
        </h3>
        <div class="sr_list">
            <h3 class="sr_lt">最新求购</h3>
            <ul class="sr_ul ltol2">
                {if $inquireorder neq ''}
                {foreach from=$inquireorder key=key item=item}
                <li><span class="pr10">{$item.contacts}</span><span class="pr10 orange">{$item.cate_name} {$item.product_name}</span><span class="pr10">{$item.brand_name}</span><span class="pr10"><i class="orange">{$item.num}</i>吨</span><span class="pr10 green">{$_BuyStartMean[$item.status]}</span>{$item.update_time}</li>
                {/foreach}
                {/if}
            </ul>
        </div>
        <a href="http://web.cn/buy" class="fr red ffs">查看更多>></a>
    </div>

    <div class="spot_list">
        <!--<div class="fl"><a href="#"><img src="/images/temp/temp2.jpg" width="210" height="460"/></a></div>-->
        <div class="spot_lm stm2">
            <table>
                <tr>
                    <th>品种</th>
                    <th>牌号</th>
                    <th>厂商</th>
                    <th>意向价格(元)</th>
                    <th>数量(吨)</th>
                    <th>交货地</th>
                    <th>交货时间</th>
                    <th>更新时间</th>
                    <th  width="100">操作</th>
                </tr>

                {if $HomeData['f2_index']}
                {foreach from=$HomeData['f2_index'] key=key item=item}
                <tr>
                    <td>{$item.cate_name}</td>
                    <td>{$item.product_name}</td>
                    <td>{$item.brand_name}</td>
                    <td class="orange">{$item.price}</td>
                    <td class="orange">{$item.num}</td>
                    <td>{$item.region_name}</td>
                    <td>{$item.delivery_time}</td>
                    <td>{$item.update_time}</td>
                    <td><a href="/buy/index?cate_name={$item.cate_name}&product_name={$item.product_name}&brand_name={$item.brand_name}" class="blue">查看</a></td>
                </tr>
                {/foreach}
                {/if}

            </table>
        </div>
        <div class="release_source rsf2">
            <h3 class="rs_title">免登录快速发布求购</h3>
            <div class="rs_list publish_inquire">
                <textarea name="content" class="rs_list_input1 content" cols="" rows="" placeholder="写下您的真实需求，包括品种、牌号、价格、厂家等，收到后我们会立即给您回电确认，剩下的就交给我们吧。"></textarea>
                <input name="business_name" class="rs_list_input2 business_name" type="text" placeholder="请输入公司名称"/>
                <input name="contacts" class="rs_list_input2 contacts" type="text" placeholder="请输入联系人姓名"/>
                <input name="mobile" class="rs_list_input2 mobile" type="text" placeholder="请输入您的手机号"/>
                <input class="rs_list_input3 publish" type="button" value="发布货源信息"/>
            </div>
        </div>

        <ul class="brand">
            <li><a href="#"><img src="/images/temp/brand1.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand2.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand3.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand4.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand5.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand6.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand7.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand8.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand9.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand10.jpg" width="94" height="39"/></a></li>
        </ul>

    </div>

</div>



<div class="spot_resources">
    <div class="sr_title srt3f">
        <h3 class="sr_h3">
            <i>3F</i>供应商报价
        </h3>
        <div class="sr_list">
            <h3 class="sr_lt">最新供应</h3>
            <ul class="sr_ul ltol3">
                {if $Supplyorder neq ''}
                {foreach from=$Supplyorder key=key item=item}
                <li><span class="pr10">{$item.business_name}</span><span class="pr10 orange">{$item.contacts}</span><span class="pr10"></span><span class="pr10 orange">{$item.main_variety}</span></li>
                {/foreach}
                {/if}
            </ul>
        </div>
        <a href="/supply" class="fr yellow ffs">查看更多>></a>
    </div>

    <div class="spot_list">
        <!--<div class="fl"><a href="#"><img src="/images/temp/temp3.jpg" width="210" height="460"/></a></div>-->
        <div class="spot_lm stm3">
            <table>
                <tr>
                    <th class="tal pl20" width="220">公司</th>
                    <th>主营品种</th>
                    <th>联系人</th>
                    <th>联系电话</th>
                    <th>上传时间</th>
                    <th>下载量</th>
                    <th width="100">操作</th>
                </tr>
                {if $HomeData['f3_index']}
                {foreach from=$HomeData['f3_index'] key=key item=item}
                <tr>
                    <td class="tal pl20"><p class="spot_hide">{$item.business_name}</p></td>
                    <td class="orange" width="110">{$item.main_variety}</td>
                    <td>{$item.contacts}</td>
                    <td>暂不可见</td>
                    <td>{$item.update_time}</td>
                    <td>{$item.visit}</td>
                    <td><a href="/supply/supplylist?id={$item.business_id}" class="blue">查看</a></td>
                </tr>
                {/foreach}
                {/if}
            </table>
        </div>
        <div class="release_source">
            <div class="rsf3">
                <h3 class="suppliers_title">供应商<i class="blue">发布排行</i></h3>
                <ul class="suppliers_list">
                    {if $RankingBusiness}
                    {foreach from=$RankingBusiness key=key item=item}
                    <li><a href="/supply/supplylist?id={$item.id}">{$item.business_name}</a></li>
                    {/foreach}
                    {/if}

                </ul>
            </div>
        </div>
        <ul class="brand">
            <li><a href="#"><img src="/images/temp/brand1.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand2.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand3.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand4.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand5.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand6.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand7.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand8.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand9.jpg" width="94" height="39"/></a></li>
            <li><a href="#"><img src="/images/temp/brand10.jpg" width="94" height="39"/></a></li>
        </ul>

    </div>

</div>




<div class="news">
    {if $news <> ''}
    {foreach from=$news key=key item=item}
        {if $key>0}
        <div class="news_left news_right">
        {else}
        <div class="news_left">
            {/if}
        <h3 class="news_left_t">{$item.cate_name}<a href="/news/list/pid/{$item.id}" target="_blank" class="ffs">查看更多>></a></h3>
        <div class="news_left_img"><a href="/news/list/pid/{$item.id}"><img src="{$image_url}{$item.image}" width="290" height="205"/><span>{$item.title} </span></a></div>
        <ul class="news_left_list">
            {if $item.list <> ''}
            {foreach from=$item.list key=k item= i}
            <li><a href="/news/newsdetail/id/{$i.id}" target="_blank">{$i.title}<span>{$i.release_time}</span></a></li>
            {/foreach}
            {/if}
        </ul>
    </div>
    {/foreach}
    {/if}
</div>

{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/footer.html"}
